package com.atguigu.springcloud.service;

import com.atguigu.springcloud.entities.CommonResult;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * @PROJECT_NAME: cloud2020
 * @DESCRIPTION: 库存微服务
 * @Author: csc
 * @DATE: 2023/4/6 10:25
 */
@FeignClient(value = "seata-storage-service")
public interface StorageService {

  @PostMapping("/storage/decrease")
  CommonResult decrease(@RequestParam("productId") Long productId,@RequestParam("count")Integer count);

}
